package com.lcc.lynx.excel.config;

import com.lcc.lynx.security.config.RootProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Excel处理配置
 *
 * @author lcc
 * @date 2023-10-14 14:15
 */
@Component
@ConfigurationProperties(prefix = ExcelProperties.PROPERTIES_PREFIX)
public class ExcelProperties extends RootProperties {

    public static final String PROPERTIES_PREFIX = ROOT_PREFIX + ".excel";

    /**
     * 最大导出条数限制
     */
    private int maxExportSize = 500;

    public int getMaxExportSize() {
        return maxExportSize;
    }

    public void setMaxExportSize(int maxExportSize) {
        this.maxExportSize = maxExportSize;
    }
}
